const Mock = require('mockjs')

export default [
    {
        url: '/log/sysLogList',
        type: 'get',
        data: () => {
            return{
                code: 20000,
                data: Mock.mock({
                    'list|15':[
                        {
                            'id|+1': 1,
                            'admin|1': ['用户1','用户2','用户3','用户4'],
                            'ip|1': ['10.10.0.20','10.10.0.14','10.10.0.15'],
                            'path|1': ['admin_api/model/editModelField'],
                            'created_at': '@datetime'
                        }
                    ],
                    total: 100,
                    currentPage: 1,
                    sizePage: 15
                })
            }
        }
    },
    // 系统日志详情
    {
        url: '/log/sysLogDetail',
        type: 'get',
        data: () => {
            return{
                code: 20000,
                data: Mock.mock({
                    'admin|1': ['用户1','用户2','用户3','用户4'],
                    'ip|1': ['10.10.0.20','10.10.0.14','10.10.0.15'],
                    'path|1': ['admin_api/model/editModelField'],
                    'input': "{\"account\":\"18981818900\",\"password\":\"Foxhms2017\",\"terminal\":\"1\"}",
                    'created_at': '@datetime'
                })
            }
        }
    }
]
